package com.icesoft.system.vo;

import com.icesoft.framework.core.binding.annotation.BindEntity;
import com.icesoft.system.entity.Role;
import com.icesoft.system.entity.User;
import com.icesoft.system.entity.UserRole;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

@Getter
@Setter
@Accessors(chain = true)
public class UserRoleVO extends UserRole {

	@BindEntity(entity = User.class, condition = "this.user_id=sys_user.id")
	private User user;

	@BindEntity(entity = Role.class, condition = "this.role_id=sys_role.id")
	private Role role;
}

